﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="ManageUsers.aspx.cs" Inherits="RealEstate.Views.Account.ManageUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script type="text/javascript">
        function RowSelected(sender, args) {
            alert("Selected: " + args.getDataKeyValue("ClientId"));
        }
        function RowDblClick(sender, args) {
            window.location = "EditUser.aspx?id=" + args.getDataKeyValue("ClientId");
        }
    </script>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Web20">
    </telerik:RadSkinManager>    
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <telerik:RadGrid ID="radTableUser" runat="server" PageSize="20" AllowSorting="False"
            AllowPaging="True" ShowGroupPanel="False" AutoGenerateColumns="False" AllowFilteringByColumn="true" GroupingSettings-CaseSensitive="False" 
            GridLines="None" >
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>
            <MasterTableView Width="100%" ClientDataKeyNames="ClientId" GroupLoadMode="Client"
                ShowGroupFooter="true">
                <Columns>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="LastName" HeaderText="LastName" HeaderButtonType="TextButton"
                        DataField="LastName" UniqueName="LastName" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="FirstName" HeaderText="FirstName" HeaderButtonType="TextButton"
                        DataField="FirstName" UniqueName="FirstName" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="Email" HeaderText="Email" HeaderButtonType="TextButton"
                        DataField="Email" UniqueName="Email" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="UserName" HeaderText="User Name" HeaderButtonType="TextButton"
                        DataField="UserName" UniqueName="UserName" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="Active" HeaderText="Active" HeaderButtonType="TextButton"
                        DataField="Active" UniqueName="Active">
                    </telerik:GridCheckBoxColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
</asp:Content>
